package com.oscarmovie.action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.oscarmovie.model.Account;

public class LoginAction {
	private Account user;
	
	public String login(){
		user = new Account();
		user.setId(12345);
		user.setUsername("username");
		
		Map<String, Object> session = ActionContext.getContext().getSession();
		session.put("user", user);
		return "success";
	}
	public void setUser(Account user) {
		this.user = user;
	}
	public Account getUser() {
		return user;
	}
}
